<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(function(){
  $("button").click(function(){
    $(".test").hide();
  });
});
</script>
</head>
<body>

<span class="test">This is a span, with class "test"</span>
<p class="test">This is a paragraph, , with class "test"</p>
<p>This is another paragraph.</p>
<button>Click me</button>
</body>
</html>

